﻿using System.ComponentModel;
using System.Windows;

namespace DenisVuyka.Controls.PropertyGrid
{
  public delegate void CategoryEventHandler(object sender, CategoryEventArgs e);

  public class CategoryEventArgs : RoutedEventArgs
  {
    public object Component { get; set; }    
    public CategoryAttribute Category { get; set; }
    public bool Cancel { get; set; }

    public CategoryEventArgs() : base() { }
    public CategoryEventArgs(RoutedEvent routedEvent) : base(routedEvent) { }
    public CategoryEventArgs(RoutedEvent routedEvent, object source) : base(routedEvent, source) { }
  }
}
